﻿using DimsMapper.Modules;

namespace DimsMapper.Proto
{
    class Item : ItemCommon
    {
        public Prototypes.ItemProtoData data;

        public Item(DBFile file)
        {
            LoadData(file);
        }

        protected override void LoadData(DBFile file)
        {
            base.LoadData(file);

            data = new Prototypes.ItemProtoData();

            switch (ItemSubType)
            {
                case Proto.ItemTypes.Armor:
                    break;

                case Proto.ItemTypes.Container:
                    break;

                case Proto.ItemTypes.Drug:
                    break;

                case Proto.ItemTypes.Weapon:
                    break;

                case Proto.ItemTypes.Ammo:
                    break;

                case Proto.ItemTypes.Misc:
                    break;

                case Proto.ItemTypes.Key:
                    break;
            }
        }

        public Prototypes.ArmorItemProto armor
        {
            get { return data.armor; }
        }

        public Prototypes.WeaponItemProto weapon
        {
            get { return data.weapon; }
        }
    }
}
